﻿using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using DIBestPractice.Application.Log;

namespace DIBestPractice.Application.WindsorInstallers
{
    public class LoggerInstaller:IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(
                Component.For<ILogger>().ImplementedBy<DatabaseLogger>().Named("database-logger").LifestyleScoped());
        }
    }
}